package com.yun.common.core.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.yun.common.core.base.entity.BaseEntity;

import java.util.ArrayList;
import java.util.List;

@TableName("sys_menu")
public class SysMenu extends BaseEntity {
    /** 菜单id **/
    @TableId(type = IdType.AUTO )
    private Long menuId;
    /** 菜单名称 **/
    private String menuName;
    /** 父菜单id **/
    private Long parentId;
    /** 显示顺序 **/
    private Integer orderNum;
    /** 路由地址 **/
    private String path;
    /** 组件名称**/
    private String componentName;
    /** 组件路径 **/
    private String component;
    /** 是否外链 **/
    private Boolean isFrame;
    /** 是否缓存 (1是 0否)**/
    private Boolean isCache;
    /** 菜单类型 M目录 C菜单 F按钮 **/
    private String menuType;
    /** 菜单状态 (1显示 0隐藏) **/
    private Boolean visible;
    /** 菜单状态 (1正常 0停用) **/
    private Boolean enable;
    /** 权限标识 **/
    private String perms;
    /** 菜单图标 **/
    private String icon;
    /** 备注 **/
    private String remark;

    /** 子菜单 */
    @TableField(exist = false)
    private List<SysMenu> children = new ArrayList<SysMenu>();

    public void setComponentName(String componentName) {
        this.componentName = componentName;
    }

    public String getComponentName() {
        return componentName;
    }

    public Long getMenuId() {
        return menuId;
    }

    public void setMenuId(Long menuId) {
        this.menuId = menuId;
    }

    public String getMenuName() {
        return menuName;
    }

    public void setMenuName(String menuName) {
        this.menuName = menuName;
    }

    public Long getParentId() {
        return parentId;
    }

    public void setParentId(Long parentId) {
        this.parentId = parentId;
    }

    public void setOrderNum(Integer orderNum) {
        this.orderNum = orderNum;
    }

    public Integer getOrderNum() {
        return orderNum;
    }

    public String getPath() {
        return path;
    }

    public void setPath(String path) {
        this.path = path;
    }

    public String getComponent() {
        return component;
    }

    public void setComponent(String component) {
        this.component = component;
    }

    public Boolean getIsFrame() {
        return isFrame;
    }

    public void setIsFrame(Boolean frame) {
        isFrame = frame;
    }

    public Boolean getIsCache() {
        return isCache;
    }

    public void setIsCache(Boolean cache) {
        isCache = cache;
    }

    public String getMenuType() {
        return menuType;
    }

    public void setMenuType(String menuType) {
        this.menuType = menuType;
    }

    public Boolean getVisible() {
        return visible;
    }

    public void setVisible(Boolean visible) {
        this.visible = visible;
    }

    public Boolean getEnable() {
        return enable;
    }

    public void setEnable(Boolean enable) {
        this.enable = enable;
    }

    public String getPerms() {
        return perms;
    }

    public void setPerms(String perms) {
        this.perms = perms;
    }

    public String getIcon() {
        return icon;
    }

    public void setIcon(String icon) {
        this.icon = icon;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public void setChildren(List<SysMenu> children) {
        this.children = children;
    }

    public List<SysMenu> getChildren() {
        return children;
    }
}
